<script>
	import { mapMutations } from 'vuex';
	export default {
		data() {
			return {
				roleId:0,
			};
		},
		methods: {
			methods: {
				...mapMutations(['setRoleId']),
			},
			//登录
			login() {
				this.setRoleId(this.roleId)// 0，1，2
				uni.switchTab({
					url: '../index/index' //然后跳转到登录后的首页
				})
			}
		}

	}
</script>
